package com.study.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import java.time.LocalDateTime;

/**
 * @author zhuzi
 * 2024/2/20 17:01
 */
@Slf4j
@Service
public class CacheService {

    public LocalDateTime localTime(String id){
        if (id.equals("aa")){
            System.out.println(1/0);
        }
        LocalDateTime now = LocalDateTime.now();
        log.info("加载数据{}|{}",id,now);
        return now;
    }
}
